<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="demo">
        <h2>绑定事件</h2>
        <button @click="test1">TEST111</button>
        <button @click="test2(event)">TEST222</button>
        <button @click="test3('123')">TEST333</button>
        <h2>事件修饰符</h2>

        <h2>按键事件符</h2>
    </div>
    <script src="../day02/js/vue.js"></script>
    <script>
        new Vue({
            data(){
                return {
                    msg:"xxxxx",
                }
            },
            methods:{
                test1(event){
                    alert(event.target.innerHTML);
                }, 
                test2(event){
                    alert(event.target.innerHTML);
                }, 
                test3(content){
                    alert(event.target.innerHTML);
                }
            }
        }).$mount("#demo")
    </script>
</body>
</html>